t=("hellow",[10,20],"world")
print(t)

t=tuple ("helloworld")
print(t)

t=tuple([10,22,50,22])
print(t)

print("10在元组中是否不存在： ",(10 not in t))
print("最大值：",max(t))
print("t.index: ",t.index(50)) #该数的索引
print("t.count: ",t.count(22)) #出现几次

t=(10)
print(t,type(t))
t=(10,)
print(t,type(t))
print("\n","-"*40)

t=(i for i in range(1,4))
print(t)
t=tuple(t)
for i in t:
    print(i)
print(t)